//============================================================================
// Name        : 100.cpp
// Author      :
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <vector>
using namespace std;

static unsigned int CALC = 1024*1024;


int main() {
	int n,aux;

	cin >> n;
	while(n>0){
		char taulell[n][n];
		int filaError = -1;
		int colError = -1;
		bool corrupte = false;
		std::vector<int> acumCol(n,0);


		for(int i=0;i<n;i++){
			int acumFil = 0;
			for(int j=0;j<n;j++){
				cin >> aux;
				taulell[i][j] = aux;
				acumFil+=aux;
				acumCol[j]+=aux;
			}
			if ((acumFil % 2) != 0) {
				if (filaError >= 0) corrupte = true;
				else filaError = i;
			}
		}
		for(int i=0;i<n;i++){
			if ((acumCol[i]%2) != 0){
				if (colError >= 0) corrupte = true;
				else colError = i;
			}
		}
		if (corrupte) cout << "Corrupt" << endl;
		else if ((filaError >= 0)&&(colError >= 0)) cout << "Change bit (" << (filaError+1) << "," << (colError +1) << ")" << endl;
		else if ((filaError == -1) && (colError == -1)) cout << "OK" << endl;
		else cout << "Corrupt" << endl;

		cin >> n;
	}


	return 0;
}


